package com.example.business.controller;

import com.example.annotation.Autowired;
import com.example.annotation.type.Controller;
import com.example.annotation.RequestMapping;
import com.example.annotation.RequestParam;
import com.example.business.service.HelloService;

@Controller
@RequestMapping("helloController")
public class HelloController {

    @Autowired
    private HelloService helloService;

    @RequestMapping("/sayHello")
    public String sayHello(@RequestParam String name){
        return helloService.sayHello(name);
    }

}
